Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(table): react table schema order #1829

Merged
merged 3 commits into from
Oct 25, 2023
Merged

Conversation

ju-Skinner
Copy link
Collaborator

@ju-Skinner ju-Skinner commented Oct 23, 2023

Description

A Sage support request identified an issue with Data formatting when using Schema.

Use the two images below as a reference. The first image shows the schema and the data used. The second image is the rendered table.

image

image

There are a couple of commits in this PR.

Commit 1: Is the first to the problem mentioned above
Commit 2: Updates the React PropTypes. This is to be used in the Storybook ArgsTable.
Commit 3: Updates the Documentation for Storybook.

Testing in sage-lib

  1. You can pull the code down locally and look at the examples in Storybook (Schema Order).
    Here is a loom video...excuse my vocals. I was tripping over my words

Related

@ju-Skinner ju-Skinner requested a review from a team October 23, 2023 20:35
@ju-Skinner ju-Skinner self-assigned this Oct 23, 2023
@ju-Skinner ju-Skinner added bug Something isn't working documentation Improvements or additions to documentation labels Oct 23, 2023
@ju-Skinner ju-Skinner force-pushed the fix/react-table-schema-order branch 2 times, most recently from b957630 to 41e6d14 Compare October 23, 2023 20:42
Copy link
Member

@pixelflips pixelflips left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tiny nitpicks and a typo, otherwise good to go! Thanks for taking this on and the updates are 🔥!

packages/sage-react/lib/Table/Table.jsx Outdated Show resolved Hide resolved
packages/sage-react/lib/Table/Table.jsx Outdated Show resolved Hide resolved
packages/sage-react/lib/Table/Table.story.mdx Outdated Show resolved Hide resolved
packages/sage-react/lib/Table/TableRow.jsx Outdated Show resolved Hide resolved
packages/sage-react/lib/Table/TableRow.jsx Outdated Show resolved Hide resolved
@pixelflips pixelflips requested a review from a team October 23, 2023 23:21
@ju-Skinner ju-Skinner force-pushed the fix/react-table-schema-order branch from 41e6d14 to 5ff56a6 Compare October 24, 2023 14:00
Copy link
Collaborator

@monicawheeler monicawheeler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Several spelling and grammar suggestions. You did an excellent job explaining the schema/header situation! Thanks!

@ju-Skinner ju-Skinner force-pushed the fix/react-table-schema-order branch 2 times, most recently from 553403e to 244e8f8 Compare October 24, 2023 15:17
@ju-Skinner ju-Skinner force-pushed the fix/react-table-schema-order branch from 244e8f8 to 2bccf51 Compare October 24, 2023 15:24
Copy link
Contributor

@anechol anechol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@ju-Skinner ju-Skinner merged commit aec75da into develop Oct 25, 2023
4 checks passed
@ju-Skinner ju-Skinner deleted the fix/react-table-schema-order branch October 25, 2023 17:21
@ju-Skinner ju-Skinner mentioned this pull request Oct 25, 2023
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants